package main

import (
	"apibe/grpc/rome/v1"
	"apibe/grpc/rome/v1/plugin"
	"apibe/grpc/rome/v1/share"
	"flag"
	_ "github.com/go-sql-driver/mysql"
)

var path = flag.String("conf", "./config.yml", "string类型参数")

func main() {
	flag.Parse()
	share.Init(share.Options{Cron: true, Path: *path})
	plugin.Init(plugin.Option{TouristInit: true, TaskInit: true})
	v1.Init() // v1 接口注册,设置允许跨域
}
